package com.cems.service;

import com.cems.pojo.SysEntrust;

import java.util.List;
import java.util.Map;

/**
 * @InterfaceName EntrustService
 * @Author 陈新予(blank)
 * @Date 2021/5/20
 * @Version 1.0
 */
public interface EntrustService {

    List<SysEntrust> getEntrusts();

    List<SysEntrust> getLeisureEntrusts();

    List<String> getEntrustTypes();

    void GetEntrust(int id, int userId);

    void userRevEntrustStatus(int id, String status);

    List<SysEntrust> getMyEntIng(int id);

    List<SysEntrust> getMyEntEnd(int id);

    void addEntrustType(String entrustType);


    boolean judgeTypeRep(String entrustType);

    List<SysEntrust> getThreeEntrusts();

    int insertEntrust(Map<String, Object> map);

    int getEntrustTypeByType(String entType);

    List<SysEntrust> getLeisureEntrustsById(int entConsignor);

    int delLeisureEntrustById(int id);

    int revLeisureEntrustById(Map<String, Object> map);

    SysEntrust getLeisureEntrustsByEntId(int id);

    List<SysEntrust> getLeisureEntrustsById2(int entConsignor);
    List<SysEntrust> AlreadyLeisureEntrustsByEntId(int id);


    int OkrevEntrustState(int id);
    int NorevEntrustState(int id);


    List<Integer> getTypeNums();

    List<String> getEntrustName();

    List<String> getEntPlan();

    List<Integer> getEntPlanNums();

    List<String> getExistEnt();

    List<Integer> getExistEntNums();

    int upQuitEtrustEntMoney(Map<String, Object> map);

    void delLeisureEntrustById2(Integer id);
}
